﻿
using System.Collections.Generic;

namespace NTTDATA.BEENChina.CaseMonitor.Base
{
    public class AlarmMessages
    {
        private static AlarmMessages alarmMessages;
        private static object lockobj = new object();


        private AlarmMessages()
        {
        }

        public  static AlarmMessages GetInstances()
        {
            lock (lockobj)
            {
                return alarmMessages ?? (alarmMessages = new AlarmMessages());
            }
        }

        public List<string> Messages = new List<string>();

        public void ClearMsg()
        {
            if (Messages == null)
            {  
                return;

            }
            else
            {
                Messages.Clear();
            }
        }

    }
}
